import { alova } from '@/service/request';

/** get CodeColumn page */
export function paginateCodeColumn(params?: Api.SearchParams) {
  return alova.Get<Api.PageRow>('/dev/code/codeColumn/paginate', {
    params
  });
}

/** get all CodeColumn */
export function listCodeColumn() {
  return alova.Get<Api.Row[]>('/dev/code/codeColumn/list');
}

/** create CodeColumn */
export function createCodeColumn(data?: Api.Model) {
  return alova.Post<boolean>('/dev/code/codeColumn/create', data);
}

/** update CodeColumn */
export function updateCodeColumn(data?: Api.Model) {
  return alova.Post<boolean>('/dev/code/codeColumn/update', data);
}

/** delete CodeColumn */
export function deleteCodeColumn(params: Api.DeleteParams) {
  return alova.Post<boolean>('/dev/code/codeColumn/delete', undefined, { params });
}

/** delete CodeColumn */
export function batchDelCodeColumn(params: Api.BatchDeleteParams) {
  return alova.Post<boolean>('/dev/code/codeColumn/batchDel', undefined, { params });
}
